//
//  AppDelegate.swift
//  LXQWB
//
//  Created by 江海天 on 2017/6/30.
//  Copyright © 2017年 江海天. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

	var window: UIWindow?

	/*
		打印logyou弊端
	1.非常耗性能
	2.
	*/
	func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
		// Override point for customization after application launch.
		//1.创建windows
		/*
		window = UIWindow(frame: UIScreen.main.bounds)
		window?.backgroundColor = UIColor.white
		window?.rootViewController = MainViewController();
		window?.makeKeyAndVisible()
		//NLog(message: "papaa");
          */
		UINavigationBar.appearance().tintColor = UIColor.orange
		UITabBar.appearance().tintColor = UIColor.orange
		return true
	}
	
	
}
//var flag:Bool = false
#if DEBUG
func NLog<T>(message: T,fileName:String = #file,methodName:String = #function,line:Int = #line){
	print("\((fileName as NSString).pathComponents.last!).\(methodName)[\(line)]:\(message)");
}
#endif
